package wcs

import "gitee.com/wcs2/common/models"

// 自动贴标任务请求记录
type BizLabelingReq struct {
	models.BaseModel
	LabelerCode      string      `gorm:"not null;type:varchar(60);column:labeler_code;" json:"labelerCode"`            //comment:贴标机编码
	LabelingTaskCode string      `gorm:"not null;type:varchar(60);column:labeling_task_code;" json:"labelingTaskCode"` //comment:贴标任务编码
	LabelingTaskType int         `gorm:"not null;type:varchar(60);column:labeling_task_type;" json:"labelingTaskType"` //comment:请求动作
	AgvCode          string      `gorm:"not null;type:varchar(60);" json:"agvCode"`                                    //comment:贴标机旁小车编码
	ReqStatus        int         `gorm:"not null;column:req_status" json:"reqStatus"`                                  //comment:任务状态
	Remark           string      `gorm:"type:varchar(560);column:remark" json:"remark"`                                //comment:备注描述
	SendTime         models.Time `gorm:"column:send_time;" json:"sendTime"`                                            //comment:请求发送时间
	NotifyTime       models.Time `gorm:"column:notify_time;" json:"notifyTime"`                                        //comment:最新响应时间
	NodeActorId      string      `gorm:"not null;column:node_actor_id;" json:"nodeActorId"`                            //comment:节点任务编码
}

func (b *BizLabelingReq) TableName() string {
	return "biz_labeling_req"
}
